<div class="container" style="width:500px;">
	
	<?php if($data != null) { ?>
	<div class="panel panel-primary">
		<div class="panel-heading">
			<h3 class="panel-title">Message Detail</h3>
		</div>
		<div class="panel-body">
			
			<?php echo $this->Form->create(null, array('url' => array('controller' => 'contact', 'action' => 'detail'))); ?>
				<?php echo $this->Form->input('name', array('value' => $data['Contact']['name'])); ?>
				<?php echo $this->Form->input('email', array('value' => $data['Contact']['email'])); ?>
				<?php echo $this->Form->input('message', array('value' => $data['Contact']['message'])); ?>
				
				<a href="<?php echo $this->webroot; ?>contact">
					<button class="btn btn-danger" type="button">Back</button>
				</a>
			<?php echo $this->Form->end(); ?>
	
		</div>
    </div>
	<?php } ?>
	
</div>